package com.smart.community.common.base.result;

import lombok.Getter;

@Getter
public enum ResultStatus {
    /**
     *
     */
    SUCCESS(200, "成功"),
    SYS_ERROR(501, "失败"),
    INSERT_FAULT(502, "添加失败"),
    WRONG_USER_NAME_OR_PASSWORD(600, "用户名或密码错误"),
    ABNORMAL_USER_STATUS(601, "用户状态异常"),
    FILE_FORMAT_ERROR(510, "文件缺少文件名"),
    LOGIN_FAILED(511,"登录失败"),

    //
    ARGS_VALID_ERROR(605, "参数校验失败"),
    USER_NO_EXIST(606, "用户不存在");

    final int code;
    final String msg;

    ResultStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
